package com.salton123.charging.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.ArrayList;
import java.util.List;

public class OnlineSoundList {
    private List<OnlineSoundItem> list;

    public static class OnlineSoundItem {
        private String name;
        private String url;

        public static List<OnlineSoundItem> arrayFromData(String str) {
            return (List) new Gson().fromJson(str, new TypeToken<ArrayList<OnlineSoundItem>>() {
            }.getType());
        }

        public String getName() {
            return this.name;
        }

        public void setName(String str) {
            this.name = str;
        }

        public String getUrl() {
            return this.url;
        }

        public void setUrl(String str) {
            this.url = str;
        }
    }

    public List<OnlineSoundItem> getList() {
        return this.list;
    }

    public void setList(List<OnlineSoundItem> list) {
        this.list = list;
    }
}
